For the latest product information, please see:
http://www.ActiveState.com/pldb/
To operate properly, ActiveState Perl Debugger requires an Activation key. To get a key, go to the ActiveState Perl Debugger Web page at http://www.ActiveState.com/pldb/default.htm and select either Buy-it, to purchase a key, or Try-it, to get a trial key. You can also select Product licensing from the ActiveState Perl Debugger program group in the Start menu, if you have already installed the software. Instructions on how to get your Activation Key will be emailed to you.
To succesfully install and activate ActiveState Perl Debugger, you should first run the setup program and then run the Activation Key. The setup program will prompt you (a) to accept the terms of the License Agreement, (b) for the destination directory for ActiveState Perl Debugger, (c) whether you are using the Standard Distribution 5.004xx Release and (d) for the name of a program group to install shortcuts to the help and read me files.
Once ActiveState Perl Debugger has been successfully installed you will have to run the Activation Key to license your application. With the application installed and the Activation Key run, you can start using it immediately by running Perl with the "-d" option, as in:
C:\SCRIPTS>perl -d script.pl input.txt output.txtInstead of the console-based debugger that would normally be displayed, a Windows application with the caption "ActiveState Perl Debugger" will appear, displaying the Perl script and pointing to the first line in that Perl script to be evaluated.
If you have used a debugger before, using ActiveState Perl Debugger should come naturally. All of the basic debugger functionality is there, including stepping through the script, setting breakpoints, running the script until a breakpoint is hit, etc. Explore the various menus to see what is possible.
FAQ
Q. The debugger installed OK, but the licensing part failed, what should I do?
A. Select "Product Licensing" from the "ActiveState Perl Debugger" program group in the "Start" menu to start the licensing process again. Or, select "Purchase" in the ActiveState Perl Debugger splash screen
Q. I can't dump my variables.
A. This is a known issue, however, there is a workaround. Try assigning the my variable to a temporary variable in the Quick Eval dialog, and then dumping the temporary variable.
Q. I'm trying to run ActiveState Perl Debugger using the -d option, but I'm getting an error message that says ole.pm and config.pm cannot be found. What's going on?
A. It sounds like you don't have Perl properly installed. After you have copied the Perl files onto your machine using the Perl installer, make sure you run the appropriate batch file to complete the install. If the install is successful, the debugger should be able to locate the standard library modules and everything should work fine.
The following registry key contains the complete path to the /lib directory:
[HKEY_LOCALMACHINE/Software/ActiveWare/PRIVLIB]If the directory in this key is not the same as the /lib directory actual location, you should reinstall, as mentioned above, however, changing the registry entry to match your configuration may also fix the problem. (please see your Windows NT documentation for more information on changing registry entries.
Q. I'm using the -d option when I run Perl, but ActiveState Perl Debugger window isn't being displayed, and the console window is displaying a "DB<1>" prompt. What do I do?
A. If you see the DB<1> prompt, you are running the default console-based debugger that comes with Perl. It sounds like your PERL5DB environment variable is not being set properly. Running the installation program again should fix the problem.
Q. ActiveState Perl Debugger is behaving strangely and I don't know what's wrong. What can I do?
A. There are various things that you can try if ActiveState Perl Debugger is not working as you would expect it to.
The first thing you should do is check which version of Perl you are running. If you run Perl with the -v option, you can find out which build number you are using. ActiveState Perl Debugger should work with most builds of Perl, but it has only been extensively tested with builds later than 310. Older builds may not work properly.
Another thing you can try is to click "Reset All Settings" in the "Options" dialog of the Tools menu. This will cause ActiveState Perl Debugger to forget all of its settings, including window placement, breakpoints, and other settings, but it might solve the problem that you are having.
Q. The splash screen that appears when I start ActiveState Perl Debugger was cool the first dozen times, but how do I get rid of it?
A. While ActiveState Perl Debugger is running, select the Options command of the Tools menu and uncheck Display Splash Screen in the General tab.
Q. I'm trying to step through my Perl program, but most of the debugging commands are beeping at me. What's going on?
A. Look at the lower-right hand corner of ActiveState Perl Debugger window the
status bar should say Ready or Working. If it says Working, the Perl program is
currently executing and can't be interrupted by the debugger. You must either
wait for your Perl program to stop executing (by hitting a breakpoint or being
done with the program) or stop the program manually by hitting
Q. I've edited my Perl program and now my breakpoints are all in the wrong places. What do I do?
A. ActiveState Perl Debugger keeps track of breakpoints so that you don't have to enter them every time you run the debugger. However, if you add or remove lines from your program the breakpoints will no longer be in the right places. You can fix them by either selecting Edit Breakpoints from the Edit menu to change their placement, or remove the breakpoints and add them again in the right places.
Q. Can I use both the console and visual debuggers?
A. Yes. Change to the directory where you installed ActiveState Perl Debugger, a file called cmdDB.bat was copied there during installation. Typing cmdDB at the prompt in the console window (MSDOS/Command Prompt) will switch to the console debugger for the duration of that console session. If you launch another console session, the default debugger will once again be the ActiveState Perl Debugger.
Q. Does ActiveState Perl Debugger work with the Standard Distribution Release 5.004xx?
A Yes, during installation, specify that you are running the Standard Distribution Release, and your autoexec.bat file will be modified if you are running Windows 95.If you are running Windows NT, the PERL5DB variable will be set in your environment.
Q. Why doesn't syntax coloring work correctly for multi-line strings?
A. ActiveState Perl Debugger does not continue syntax coloring of strings (single and double quoted) or regular expressions across line boundaries. This is a design feature in that there were many circumstances where the syntax coloring can get confused and then the rest of the script would be colored incorrectly. To avoid this, syntax state gets cleared at the end of each line. Visual Perl, an upcoming product, will have more correct syntax coloring.
Q. Why can't I edit scripts directly within the source window?
A. You cannot edit scripts in ActiveState Perl Debugger source window. You can configure the debugger to launch your favorite editor by choosing Customize from the Tools menu and adding your editor. ActiveState is working on an integrated development environment, IDE, for Perl developers called Visual Perl which will include the ability to edit scripts directly within the source window as well as a host of other features that Perl developers have told us they want.
Q. When I try to run my scripts in debug mode, I get the error:
Undefined subroutine &Win32::Sleep called at C:\Program Files\ActiveState Perl Debugger\PerlDB.pl line 153A. There are two ways to fix this. You can comment out line 153, or upgrade your Perl for Win32 to the latest build. You can get the latest version of Perl for Win32 from the ActiveState Web site at: http://www.ActiveState.com.
Q. Can I trap compiler warnings in the debugger? I want to run perl with -w -d, but it doesn't seem to work.
A. This is a known problem. A useful alternative is to first run the script with -c -w, fix those problems, then run with -d to make sure the script is doing what it should be doing.
Q. My scripts causes a "use of uninitialized value" message when run with perl.exe, but seems to run with no error message in the Debugger.
A. This is a known issue. The debugger declares variables to put into the proximity window, so the value is not "uninitialized".
The most up to date list of FAQs for ActiveState Perl Debugger can be found at: http://www.ActiveState.com/pldb/faq/
New Features, Bug Fixes and Changes
New Features, Bug Fixes and Changes
New Features, Bug Fixes and Changes
New Features, Bug Fixes and Changes
Known Issues
New Features, Bug Fixes and Changes
Known Issues